import 'dart:ui';

import 'package:flutter/widgets.dart';
import 'package:flutter_svg/svg.dart';

Widget buildSvgView(String assetFile, double? width, double? height, Color? color) {
  return SvgPicture.asset(
    assetFile,
    width: width,
    height: height,
    theme: color != null ? SvgTheme(currentColor: color) : null,
    color: color,
  );
}